﻿using FFmpeg.AutoGen;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VideoPlayer
{
    public class Data
    {

        /// <summary>
        /// 当前状态
        /// </summary>
        public static BottomPlayState IndexBottomPlayState = BottomPlayState.stop;

        /// <summary>
        /// 图片控件大小
        /// </summary>
        public static Size PicSize;

        /// <summary>
        /// 没有移动时间
        /// </summary>
        public static int NoMoveTime;

        /// <summary>
        /// 结束时间
        /// </summary>
        public static int OverTime = 5000;

        /// <summary>
        /// 下面的状态
        /// </summary>
        public enum BottomPlayState
        {
            /// <summary>
            /// 停止不动
            /// </summary>
            stop,
            /// <summary>
            /// 向上
            /// </summary>
            up,
            /// <summary>
            /// 向下
            /// </summary>
            down
        }

        /// <summary>
        /// 运动方向
        /// </summary>
        public enum Direction
        {
            left,
            right,
            up,
            down
        }

        /// <summary>
        /// 图片队列
        /// </summary>
        public static Queue<KeyValuePair<long, Bitmap>> bitmaps = new Queue<KeyValuePair<long, Bitmap>>();

        /// <summary>
        /// 音频队列
        /// </summary>
        public static Queue<KeyValuePair<long, byte[]>> audios = new Queue<KeyValuePair<long, byte[]>>();
    }
}
